跳到主要内容

DepthStencilAttachment

beginRenderPass 的深度/模板附件描述符。

字段

view

必需。使用 GPUTexture:view()。

depthLoadOp

depthStoreOp

必需;'discard' 用于临时深度,'store' 用于稍后读取。

depthClearValue